package RPGame;

public abstract class Entity {
	protected Game game;
	
	protected float x;
	protected float y;
	protected float vX;
	protected float vY;
	
	public Entity(Game game) {
		this.game = game;
		x = 0;
		y = 0;
		vX = 0;
		vY = 0;
	}
	
	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getvX() {
		return vX;
	}

	public void setvX(float vX) {
		this.vX = vX;
	}

	public float getvY() {
		return vY;
	}

	public void setvY(float vY) {
		this.vY = vY;
	}

	public void render() {}
	
	public void update(int delta) {
		x += vX * delta;
		y += vY * delta;
	}
}
